//
//  CommonCell.m
//  第三组_阅读器
//
//  Created by My Mac on 2016/12/25.
//  Copyright © 2016年 My Mac. All rights reserved.
//

#import "CommonCell.h"

@implementation CommonCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        _imgView=[[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 70, 100)];
        [self.contentView addSubview:_imgView];
        
        _bookName = [[UILabel alloc]initWithFrame:CGRectMake(90, 20, 200, 40)];
        _bookName.font = [UIFont systemFontOfSize:20];
        [self.contentView addSubview:_bookName];
        
        _author = [[UILabel alloc]initWithFrame:CGRectMake(95, 60, 200, 30)];
        _author.font = [UIFont systemFontOfSize:18];
        [self.contentView addSubview:_author];
    }
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
